# Contributor:
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-alembic
_pkgname=alembic
pkgver=1.7.7
pkgrel=0
pkgdesc="A database migration tool for SQLAlchemy."
url="https://pypi.org/project/alembic/"
arch="noarch"
license="MIT"
depends="python3 py3-sqlalchemy py3-mako py3-python-editor py3-dateutil"
checkdepends="py3-pytest"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
dcb4ba2faafc3ee789981931e0548f7328c1118938150789218e720f39386fd5e7e2543ab241838bcc1faaf36db07900fd065963496e68ced0896a5f4795d63d  alembic-1.7.7.tar.gz
"
